﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;

namespace TM.QWeibo.SDK.Objects
{
    /// <summary>
    /// 输出的对象
    /// </summary>
    [DataContract]
    public class ResponseDataObject<T>
    {
        /// <summary>
        /// 是否还有
        /// </summary>
        [DataMember(Name = "hasnext")]
        public int HasNext { get; set; }

        /// <summary>
        /// 是否还有
        /// </summary>
        public bool IsHasNext {
            get
            {
                return HasNext == 1 || HasNext == 3;
            }
        }

        /// <summary>
        /// 结果集合数组 
        /// </summary>
        [DataMember(Name = "info")]
        public List<T> Info { get; set; }

        [DataMember(Name = "timestamp")]
        public long Timestamp { get; set; }

        [DataMember(Name = "totalnum")]
        public long TotalCount { get; set; }

        /// <summary>
        /// 包含的用户信息
        /// </summary>
        public List<SDK.Objects.UserInfo> Users { get; set; }

    }
}
